# Copyright (c) Orbbec Inc. All Rights Reserved.
# Licensed under the MIT License.

cmake_minimum_required(VERSION 3.5)
project(ob_multi_devices_sync_gmsl)

add_executable(${PROJECT_NAME} ob_multi_devices_sync_gmsl.cpp utils/cJSON.c)

set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 11)
target_link_libraries(${PROJECT_NAME} ob::OrbbecSDK ob::examples::utils)

set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER "examples")

install(FILES ${CMAKE_CURRENT_LIST_DIR}/ob_multi_devices_sync_gmsl_config.json DESTINATION bin)
install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin)
